Add Sortformer CUDA export and Linux/Windows CUDA CI coverage#17865
Merged
larryliu0820 merged 5 commits intomainfrom Mar 5, 2026
Merged
Add Sortformer CUDA export and Linux/Windows CUDA CI coverage#17865larryliu0820 merged 5 commits intomainfrom
larryliu0820 merged 5 commits intomainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17865
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 13 Pending, 4 Unrelated FailuresAs of commit 6db4e02 with merge base 2dd9034 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but was present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
|
please update sortformer readme for cuda support. Also highlight that we should use python >= 3.11 when working on sortformer model |
Contributor
Author
Done |
mergennachin
reviewed
Mar 5, 2026
mergennachin
approved these changes
Mar 5, 2026
Gasoonjia
reviewed
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds CUDA coverage for Sortformer in both Linux and Windows CI, and updates the Sortformer example/export path so CUDA artifacts are exportable and runnable end-to-end.
What Changed
Added Sortformer to CUDA export/e2e matrices in:
.github/workflows/cuda.yml(Linux CUDA).github/workflows/cuda-windows.yml(Windows CUDA runtime, Linux export)Extended CI export/test scripts for Sortformer:
.ci/scripts/export_model_artifact.shnvidia/diar_streaming_sortformer_4spk-v2support.ci/scripts/test_model_e2e.sh.ci/scripts/test_model_e2e_windows.ps1Enabled Sortformer CUDA build targets:
examples/models/sortformer/CMakePresets.jsonsortformer-cudaconfigure/build/workflow presetsMakefilesortformer-cudatarget and help textUpdated Sortformer runner to accept CUDA named-data blob:
examples/models/sortformer/main.cpp--data_pathexamples/models/sortformer/sortformer_runner.h/.cpp.ptdUpdated Sortformer exporter for CUDA backends:
examples/models/sortformer/export_sortformer.pycuda,cuda-windowswrite_tensor_data_to_file(output_dir)aoti_cuda_blob.ptdexists in output dirValidation
python -m py_compile examples/models/sortformer/export_sortformer.py